package com.ht.medicaltreatment.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.ht.medicaltreatment.R

class ProgressTubeAdapter:BaseQuickAdapter<Boolean,BaseViewHolder>(R.layout.item_progress_tube_layout) {
    override fun convert(holder: BaseViewHolder, item: Boolean) {
        if(item){
            holder.setImageResource(R.id.img,R.drawable.icon_progress_blue_shiguan)
        }else{
            holder.setImageResource(R.id.img,R.drawable.icon_progress_gray_shiguan)
        }
    }
}
